<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>.board {
        display: flex;
        flex-wrap: wrap;
        width: 400px;
        height: 400px;
        margin: 0 auto;
        border: 1px solid black;
      }
      
      .row {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        
      }
      
    
      
      .snake {
        background-color: green;
      }
      
      .food {
        background-color: red;
      }
      
      .score {
        text-align: center;
        font-size: 24px;
        font-weight: bold;
      }
      </style>
</head>
<body>
    <div id="app">
        <div class="board">
          <div v-for="row in numRows" class="row">
            <div v-for="col in numCols" class="cell" :class="{ 'snake': isSnake(row, col), 'food': isFood(row, col) }"></div>
          </div>
        </div>
        <div class="score">Score: {{ score }}</div>
      </div>
      <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
      
  
</body>
</html>